package com.zpself.module.面试草搞;

import org.junit.Test;

import java.util.ArrayList;

/**
 * @author By ZengPeng
 * @Description
 * @date in  2021/3/10 14:48
 * @Modified By
 */
public class Test1 extends Thread{

    public static void main(String[] args) {
        Test1 t = new Test1();
        t.start();
    }

    public void run(){
        for (int i = 0; i < 10; i++) {
            System.out.println("sss"+100);

        }
    }

    static int number=0;
    @Test
    public void test(){
        String r = "\\d*\\*[^\\d]*[\\w]{6}";
        System.out.println("***abcABCD_89".matches(r));
        System.out.println("abc*abcABCDEF".matches(r));
        System.out.println("123*abcABCD_89".matches(r));
        System.out.println("123*ABCabcd-89".matches(r));

//        try {
//            System.out.println(1/0);
//        } catch (ArithmeticException e) {
//            System.out.println(1);
//        }catch (RuntimeException e) {
//            System.out.println(2);
//        }
//        int t=1,a=2,b=-1;
//        if((a=b)>0)
//            t=a++;
//        System.out.println(t);
    }




    private static double a(byte x, double y  ){
      return  (short)x/y*2;
    }


  private static   int  x(int n){
        number++;
        if(n<=3){
            return 1;
        }
        else
            return x(n-2)+(n-4)+1;
    }
}
